//
//  PesonalLabel.m
//  项目三
//
//  Created by rimi1 on 2016/12/9.
//  Copyright © 2016年 Wangxingqian. All rights reserved.
//

#import "PesonalButton.h"

@implementation PesonalButton

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubview:self.title];
        [self addSubview:self.count];
    }
    return self;
}

#pragma mark - get

- (UILabel *)title {
    
    if (!_title) {
        
        _title = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, WXQAdaptionWidth(35), self.bounds.size.height)];
        _title.textColor = [UIColor whiteColor];
        _title.font = [UIFont systemFontOfSize:WXQAdaptionHeight(15)];
        
    }
    return _title;
}

- (UILabel *)count {
    
    if (!_count) {
        
        _count = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.title.frame), 0, 0, self.bounds.size.height)];
        _count.textColor = [UIColor orangeColor];
        _count.font = self.title.font;
        
    }
    return _count;
}

@end











